home *** CD-ROM | disk | FTP | other *** search
Text File | 1989-10-12 | 2.1 KB | 48 lines | [TEXT/GEOL] |
- Item 7138381 12-Oct-89 08:44
-
- From: LINS Lins, Chuck
-
- To: D1282 Power Up,PRT
-
- cc: MACAPP.TECH$ MACAPP Tech
-
- Sub: Re: Re- Undoable lists
-
- James,
-
- Yes I know what fanaticism can do to someone - makes them think that their
- <whatever their being fanatic about> is better than anyone elses. Yes, I've
- read Bertrand Meyer's book and I recommend it. Though I'd also recommend
- reading as many of the other books and articles on OOP as well. That way you
- see multiple viewpoints. There's still a great deal of discussion (and
- research) going on in OOP and the dust hasn't settled yet. But everyone trying
- to sell you something is working to convince you that the dust has settled and
- their solution(s) is THE one.
-
- Personally, I'm not yet convinced of the requirement for multiple inheritance
- (MI) in an O-O language. Every example of MI I've seen I can do without MI
- using single inheritance and an instance variable of an object. That way I get
- complete control over what methods are visible and available to the client.
- E.G., if I'm using an array class to implement a set abstraction I would not
- want the client having access to the array method's and possibly violating my
- abstraction. (The fact that Object Pascal does not allow 'hidden' instance
- variables is a problem with the language - not in object-oriented principles).
-
- Genericity is a special case of inheritance. Use TObject as a generic class.
- Eiffel has the special concept ot genericity because you can't take a TObject
- (for example) and convert it to anything else (one of its subclasses). You can
- take a subclass of TObject and 'cast' it to a TObject.
-
- I think Eiffel is a very interesting object-oriented language, but I don't
- consider it the be-all-and-end-all. If I had to choose between C++ and Eiffel
- I'd most likely choose Eiffel. But then again, I'd probably choose Object
- Oberon over them all [I will not go on a crusade to convince anyone to make the
- same choice]. :-)
-
-
- Chuck Lins
- Apple Computer, Inc.
- Disclaimer: The intersection of Apple's ideas and my ideas yields the empty set
-
-
-